home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr55 / lxfaq160.zip / LINUXFAQ.03 < prev    next >
Internet Message Format  |  1993-06-09  |  57KB

  1. From getrz!chsun!mcsun!news.funet.fi!hydra!klaava!wirzeniu Wed Jun  9 14:02:29 1993
  2. Xref: getrz comp.os.linux:16157 news.answers:3006
  3. Newsgroups: comp.os.linux,comp.os.linux.announce,comp.answers,news.answers
  4. Path: getrz!chsun!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  5. From: corsini@victor.greco-prog.fr
  6. Subject: Linux Frequently Asked Questions 2/5 [monthly posted]
  7. Message-ID: <1993Jun8.144445.18573@klaava.Helsinki.FI>
  8. Followup-To: poster
  9. Summary: Linux, a small and free unix-like for 386-AT computers.
  10. Sender: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  11. Reply-To: linux@numero6.greco-prog.fr
  12. Organization: Greco Prog. CNRS & LaBRI, Bordeaux France
  13. Date: Tue, 8 Jun 1993 14:44:45 GMT
  14. Approved: linux-announce@tc.cornell.edu (Lars Wirzenius)
  15. Expires: Wed, 21 Jul 1993 13:49:58 GMT
  16. Lines: 1307
  17.  
  18. Archive-name: linux-faq/part2
  19.  
  20. Last-Modified: 93/06/07
  21. Version: 1.18
  22.  
  23. *********************************************************
  24. *                            *
  25. *   Answers to Frequently asked questions about Linux   *
  26. *                            *
  27. *********************************************************
  28.  
  29. This post contains Part 2 of the Linux FAQ (4 parts).
  30. It must be read *after* the first part. 
  31.  
  32. ================================8<=====8<==============================
  33. CONTENTS (of this part)
  34.  
  35.     III.     INSTALLATION, and COMMON PROBLEMS    (part2)
  36.     IV.    SOME CLASSICAL PROBLEMS            (part2)
  37.     V.    LINUX and DOS                (part2)
  38.  
  39. ===================================8<====>8============================
  40.  
  41.  
  42.  
  43. III. INSTALLATION, SETUP, and COMMON PROBLEMS
  44. =============================================
  45. *** Note: this FAQ section should be the most 'reliable' source for 
  46. *** installation info. Please mail any corrections or changes to this 
  47. *** section's coordinator, Matt Welsh (mdw@tc.cornell.edu). 
  48. *** Last update April 93.
  49.  
  50.  
  51.  
  52. III.A. WHERE TO START: What are the reliable sources of information
  53. III.B. LINUX PACKAGES: Where and how install a complete Linux package
  54.  
  55.  
  56. III.C. SOME COMMON PROBLEMS: Simple problems and simple solutions
  57.  
  58.  
  59.  
  60. III.A. WHERE TO START
  61. ~~~~~~~~~~~~~~~~~~~~~
  62.  
  63.  III.01)  I want to install Linux on my machine. Where do I start?
  64.  
  65. ANSWER: The first thing you should do is read through the various
  66. introductory files, and ESPECIALLY the FAQ (this file). Especially
  67. this section :). A lot of effort has been done on these intro files,
  68. but note that some of them conflict with each other and cover older
  69. versions of Linux. When in doubt consult this file.
  70.  
  71. These files are all found on tsx-11.mit.edu:/pub/linux/docs...
  72.  
  73.   FAQ
  74.   The Linux Frequently Asked Questions list
  75.     It's sitting in your hands now. This section is probably the best
  76.     place to start to get the most up-to-date Linux installation
  77.     information.
  78.  
  79.   INFO-SHEET 
  80.   Linux Information Sheet, by J. Winstead/L. Wirzenius/M. Welsh/M. Johnson
  81.     This is a collection of general info about Linux. It's
  82.     a good place to start if you've never heard of the package
  83.     before.
  84.  
  85.   README.kernel
  86.   Kernel compilation README file, by L. Wirzenius
  87.     This is the README notes for recompiling the Linux kernel from the
  88.     sources. You don't need it unless you're planning to upgrade
  89.     your kernel by compiling it yourself.
  90.  
  91.   Others
  92.     Every "release" of Linux (such as SLS, boot/root, HLU's disks, etc.,
  93.     see below) has its own up-to-date README files and docs that explain
  94.     how to install that release. This FAQ section summarizes, but for more
  95.     info on how to install Linux, read the READMEs and docs for the release 
  96.     that you choose.
  97.  
  98.   Old docs
  99.     There are a number of obsolete, old docs lying around. Most of these
  100.     tell how to install Linux from the old boot/root disk combo. I DO NOT
  101.     SUGGEST that you use these docs unless you know what you're doing--
  102.     the best thing for beginners to do is read this FAQ and install the SLS
  103.     release (using the docs and READMEs for the SLS release). 
  104.     These old docs are things like "install.txt", "guide.txt", "RELNOTES",
  105.     "CHANGES", and so on, and are all geared towards old versions of the
  106.     boot/rootdisk. They are *NOT* relevant to current versions of Linux.
  107.  
  108.  
  109.  III.02)  Is there some kind of limit on how large my Linux partitions
  110. and/or filesystems can be?
  111.  
  112. ANSWER: There's no limit on partition size (just the size of your drive),
  113. or filesystem size. The Minix filesystem type has a limit of 64 megs per
  114. filesystem. However, most folks use the Extended 2 filesystem or the Xia
  115. filesystem, which have limits of 4 terabytes per partition (virtually
  116. infinite).
  117.  
  118. See section III.C below on creating partitions and filesystems for more info.
  119.  
  120.  
  121.  
  122. III.B. LINUX PACKAGES
  123. ~~~~~~~~~~~~~~~~~~~~~
  124. This section contains information about *SOME* of the current Linux
  125. packages  available. 
  126.  
  127.  III.03)  Does there exist a way to get all (or nearly all) of the Linux
  128. stuff?
  129.  
  130. ANSWER: Yes. To install Linux, you're going to want to choose one of the
  131. "releases" of Linux, all of which have a different method of installation
  132. and set up. Each release also has its own README and installation docs,
  133. which you'll want to read first. But I'll summarize here. The major
  134. releases are:
  135.    
  136.    * The "Softlanding Linux System Release"
  137.      Also known as the "SLS" release, consists of about 23 disks for Linux
  138.      and 9 for X11. The nice thing about this release is that you can
  139.      pick and choose which disks and packages you want to install. The
  140.      first disk ("a1") must be "rawritten" (using rawrite.exe) on floppies,
  141.      and the rest of the images are put onto DOS format floppies using the
  142.      DOS "copy" command. Contains all of the softs you'll ever need, and is 
  143.      easy to install for newcomers.
  144.  
  145.      This is the release that I suggest everyone new to Linux should
  146.      install. It's the most complete and up-to-date package. HLU's
  147.      disks, below, are good for upgrading, and (unfortunately),
  148.      the MCC-interim is quite dated at this point. If you install
  149.      SLS you'll save yourself a lot of trouble.
  150.  
  151.    * The "TAMU" (Texas A&M University) Linux Release
  152.      This release is supposedly like the SLS release, but has some
  153.      different softs and a different installation procedure. From Dave
  154.      Safford, "The installation procedure is the main difference from
  155.      SLS. A single boot diskette is used, and it boots directly into
  156.      an automated installation program." This installation program
  157.      asks a few questions about the desired configuration, and sets up
  158.      everything, including your filesystems, booting from the hard
  159.      drive with LILO (see section III.C below), and a simplified
  160.      X-Windows configuration. 
  161.  
  162.      This humble author has never installed the TAMU release but I've
  163.      heard good things about it. 
  164.  
  165.    * H.J. Lu's "bootable rootdisk"
  166.      This is a release of the Linux kernel and basic binaries on
  167.      a single floppy. It, along with HLU's 'gccdisk', 'libdisk',
  168.      and so on, are good for upgrading or installing basic
  169.      Linux system by hand. It's not reccommended for newcomers,
  170.      because there's no real install script, it's mostly meant
  171.      as an upgrade of the basic system software. Beginners should
  172.      install SLS or MCC-interim (see below) instead.
  173.  
  174.    * The Manchester Computing Centre Interim Release
  175.      This is the fabled "MCC-Interim" Linux release, which was originally
  176.      the de facto standard Linux distribution. After 0.97.2, it was dropped
  177.      in favor of SLS, but as of 0.99.8 a new MCC-Interim has been released.
  178.      Like SLS and TAMU, it has an easy-to-install, complete set of Linux
  179.      software, including networking and X11.
  180.  
  181.    * Others but OUTDATED
  182.      There are other releases and distributions of the Linux software,
  183.      "MJ" release. There is also an older "boot/root" disk combo (0.98.1) 
  184.      which is like HLU's bootable rootdisk, above, but it's no longer 
  185.      supported (as far as I know).
  186.  
  187.      The "MJ" release, according to Martin Junius, is no longer
  188.      maintained. The last version was 0.97.1.
  189.  
  190.  III.04)  Where can I get these releases of Linux?
  191.  
  192. ANSWER: 
  193.  
  194. The SLS release is at tsx-11.mit.edu:/pub/linux/packages/SLS and
  195. sunsite.unc.edu:/pub/Linux/SLS.
  196.  
  197. H.J. Lu's "bootable rootdisk" release is found at tsx-11.mit.edu:
  198. /pub/linux/packages/GCC, as well as the mirror sites.
  199.  
  200. TAMU.99p4 is available from sc.tamu.edu in pub/free_unix/TAMU.99p4.
  201.  
  202.  
  203.  III.05)  What files do I need to get for the SLS release?
  204.  
  205. ANSWER: Basically all of the releases are alike. You need to get the
  206. DOS program 'rawrite.exe' (or 'rawrite2.exe'). This program takes a
  207. binary file and writes it, block by block, to a blank formatted
  208. floppy. This is the way to take a Linux floppy image and put it onto a
  209. disk from DOS. Rawrite can be found in tsx-11.mit.edu:/pub/linux/dos_utils.
  210.  
  211. For the SLS release, you need to get the files:
  212.     * SLS.README and SLS.FAQ. These files contain further information
  213.       on the current release of SLS. You should read them in addition 
  214.       to this FAQ.
  215.  
  216.     * a1.3 or a1.5, depending on what type of floppy you boot from
  217.       on your system. a1.3 is for high-density 3.5" floppies, and
  218.       a1.5 for high-density 5.25" floppies.
  219.  
  220.       This file is the image of the SLS "a1" disk. You must use 
  221.       rawrite.exe (above) to rawrite the file to a high-density
  222.       *formatted* MS-DOS floppy. (Once the file is rawritten, the
  223.       floppy will no longer be recognized by DOS). 
  224.  
  225.     * The files in the a2, a3, and a4 directories. These files must
  226.       be copied to MS-DOS formatted floppies (using the MS-DOS
  227.       'copy' command). For example, the files in the a2 directory
  228.       are copied to a floppy labeled 'a2', and so on.
  229.  
  230.       These files make up the "a" disk set. They are required. The
  231.       rest of the files below are optional.
  232.  
  233.     * The files under the directories b1-bN, c1-cN, x1-xN, t1-tN, and
  234.       so on. These files are copied to MS-DOS floppies just like a2-a4
  235.       above. (e.g. the files in the b2 directory are copied to a floppy
  236.       labeled 'b2'). 
  237.  
  238.       These floppies contain optional software for SLS:
  239.         b1-bN: base system extras, such as emacs and man pages
  240.         c1-cN: compilers such as gcc, g++, f2c, etc.
  241.         x1-xN: the X Windows system
  242.         i1-iN: Interviews (doc and idraw)
  243.         t1-tN: TeX, LaTex, etc. (document processing system)
  244.         s1-sN: sources for some of these utilities
  245.  
  246. I suggest getting at least the a, b, and c disk series. If you want to
  247. run Xwindows, get the x series as well. When you're making these floppies,
  248. a2-a4 and so on must all be the same kind of floppy (i.e. either
  249. 3.5" or 5.25"). The a1 disk must be the floppy type that you boot from.
  250. The rest of the disks don't have to be the same type as the a1 disk.
  251.  
  252.  
  253.  III.06)  Now that I have the files, how do I install SLS?
  254.  
  255. ANSWER: Before installing SLS you may need to resize your partitions for
  256. MS-DOS, etc. to make space for Linux on your hard drive. For this you
  257. generally use MS-DOS's "fdisk" and resize your partitions by first 
  258. deleting them and then re-creating them with smaller sizes. Note that
  259. this procedure deletes everything on the affected partitions: you'll need
  260. to make backups first and restore from them later. See section III.C for
  261. more info on this.
  262.  
  263. To install the system: First boot the a1 disk. You should see the prompt
  264. "LILO". Press <ctrl> or <shift> to get a list of instructions: at this
  265. point you'll be able to choose how you want to boot the a1 disk (i.e.
  266. choose the option "floppy" to boot without the ramdisk enabled, "ramdisk"
  267. to boot normally, and so on). If you just press <return> you'll boot with
  268. the ramdisk enabled (recommended, but may not be possible for systems with
  269. less than 4 megs of RAM). 
  270.  
  271. Once the system boots up login as "root" (no password). You can now
  272. use 'fdisk' to create partitions for Linux, and reboot (from the a1 disk
  273. again). Again, login as "root" and use 'mke2fs', 'mkswap', and
  274. so on to create filesystems and swap space. See section III.C below for
  275. information on making partitions and filesystems.
  276.  
  277. To install the software, use the command
  278.     doinstall <partition>
  279. where <partition> is the location of your root filesystem that you just
  280. created. For example, if your Linux root filesystem is on /dev/hda2, use 
  281. the command
  282.     doinstall /dev/hda2
  283. If you have more than one Linux filesystem (for example, a filesystem on
  284. /dev/hda3 for /usr), then use something like
  285.     doinstall /dev/hda2 /dev/hda3 /usr
  286. Those with previous UNIX experience will know what this means. 
  287. See section III.C below.
  288.  
  289. Next, the system will ask how you want to install the system (from 
  290. floppy, hard disk, tape, CD-ROM, or over the network). If you're 
  291. installing from floppy, choose "floppy". (For info on installing 
  292. from the hard drive, etc. see the file SLS.FAQ). For floppy 
  293. installations you'll also be asked what drive to install from and 
  294. how much software you're going to install. It's very self-explanatory.
  295.  
  296. You must have a formatted high-density floppy on hand before you go on.
  297. It must be the type of floppy that you boot from (i.e. same type as the
  298. a1 disk). It will be used to make a boot disk at the end of the installation
  299. procedure.
  300.  
  301. >From here on it's pretty automatic-- you simply flip disks while it
  302. installs the software.
  303.  
  304.  
  305.  III.07)  Any other information about SLS?
  306.  
  307. ANSWER: This comes from the file SLS.FAQ, by Peter MacDonald.
  308. Please get the most recent version and read it: sunsite.unc.edu:
  309. /pub/Linux/SLS/SLS.FAQ.
  310.  
  311. SLS (Softlanding Linux System) Copyright 1992, Softlanding Software.
  312.  
  313. which is NOT just an image dump of someones Unix system.
  314.  
  315. Also note that in the interest of preventing ftp storms, the version
  316. of SLS that appears on the internet, is not quite the same as the
  317. version distributed by Softlanding.   Softlanding regularly gets a
  318. whole new version which has the changes integrated.   But the updates
  319. to the Internet version are tailored to minimize the amount that has
  320. to be downloaded to become current.  That is why bugs manage to creep
  321. in on me.  I am not installing and testing the Internet version, 
  322. although, functionally, it should be quite close to the Softlanding
  323. one.  
  324.  
  325. The purposes of the SLS are the following:
  326. 0) provide an initial installation program (for the queasy).
  327. 1) utilities compiled to use minimal disk space.
  328. 2) provide a reasonably complete/integrated U*ix system.
  329. 3) provide a means to install and uninstall packages.
  330. 4) permit partial installations for small disk configs.
  331. 5) add a menu driven, extensible system administration.
  332. 6) take the hassle out of collecting and setting up a system.
  333. 7) give non internet users access to Linux.
  334. 8) provide a distribution that can be easily updated.
  335.  
  336. Highlights of the base are:  gcc/g++, emacs, kermit, elm/mail/uucp,
  337. gdb, sc (spreadsheet), man pages, groff, elvis, zip/zoo/lh and menu.
  338. Highlights of X are: X, programmers libs, 75 dpi fonts, games (spider,
  339. tetris, xvier, chess, othello, xeyes, etc) and utilities like xmag,
  340. xmenu, xcolormap and ghostscript.  Approximate usage is as follows: 
  341.  
  342. Tiny base system:        9 Meg  (Series 'a')
  343. Main base system:       25 Meg  (Series 'a', 'b' and 'c')
  344. Main base system + X11: 45 Meg  (Series 'a', 'b', 'c' and 'x')
  345.  
  346. Please read the file COPYING which outlines the GNU copying 
  347. restrictions.  The linux kernel is copywrite Linux B. Torvalds.
  348. Various other copywrites apply, but the upshot is that you
  349. may do whatever you like with SLS, except restrict others
  350. in any way from doing likewise, and you must leave all copywrites
  351. intact, and you can not misrepresent or take credit for others work.
  352.  
  353. SLS is also available via mail from the address: 
  354.  
  355.         Softlanding Software               
  356.         910 Lodge Ave. 
  357.         Victoria, B.C., Canada             
  358.         V8X-3A8            
  359.         (604) 360-0188
  360.  
  361. More details about SLS can be asked to pmacdona@sanjuan.uvic.ca.
  362.  
  363.  
  364.  III.08)  How do I get and install H.J. Lu's "bootable rootdisk" release?
  365.  
  366. ANSWER: It's much like SLS release. Just get the bootroot disk image and 
  367. use rawrite to transfer it to a floppy, and then boot it. You'll probably 
  368. want to get the 'gccdisk' and 'libdisk', etc. images and rawrite them to 
  369. floppies as well. Note that this release doesn't have a user-friendly 
  370. installation script, it's meant mostly to upgrade or install the system 
  371. by hand. Unless you're familiar with Linux this may prove difficult. :)
  372.  
  373. This release is VERY USEFUL as a recovery disk in case you trash your
  374. Linux system. Everyone should have a copy of the newest bootroot disk
  375. for emergencies. It contains a full Linux system on one floppy.
  376.  
  377.  
  378.  
  379. III.C. SOME COMMON PROBLEMS
  380. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  381.  
  382.  III.09)  What filetype is the extension ".z"? What about ".taz", 
  383. ".tpz", and ".tgz"? I see these files on the archives but I don't
  384. know how to unpack them.
  385.  
  386. ANSWER: Here's a list of common filename extensions on the archives.
  387.   
  388.    Extension      Used by
  389.    ---------      ----------------------------------------------------------
  390.     .Z              compress/uncompress. Use "uncompress foo.Z" to 
  391.             uncompress the file.
  392.     .z              gzip. Gzip is now used by many archive sites instead
  393.             of compress; if you don't have gzip on your system,
  394.             get it! To uncompress one of these files use 
  395.             "gzip -d foo.z".
  396.     .tar            Tar file. Use "tar xvf foo.tar" to unpack it. Or, you
  397.             can fo "tar tvf foo.tar" to get an index listing of 
  398.             the tarfile.
  399.     .taz            Compressed tar file. You can do something like
  400.             "zcat foo.taz | tar xvf -" or "tar xvfz foo.taz" to 
  401.             unpack it (some versions of tar don't have the z 
  402.             option).
  403.     .tpz, .tgz      Gzipped tar file. If you have gzip, zcat is linked to 
  404.             it, so you can do "zcat foo.tpz | tar xvf -" to unpack
  405.             it. .tpz is the old extension; all gzipped tar files 
  406.             should now end in .tgz instead.
  407.  
  408. The SLS distribution uses gzipped tar files (.tgz). 
  409.  
  410.  
  411.  III.10)  How do I make partitions and/or filesystems for Linux?
  412.  
  413. ANSWER: For most Linux installations (such as SLS) you'll need at
  414. least two partitions: one for swap space (used as virtual memory) and
  415. another for your "root filesystem" (that is, the actual Linux software
  416. itself). You can also make separate partitions for your /usr filesystem... 
  417. if you have UNIX experience, you'll be able to figure out how to 
  418. divide software between multiple partitions.
  419.  
  420. For most installations simply having one root filesystem and one
  421. swap partition is the best way to go.
  422.  
  423. The first thing you need to do is resize the existing partitions on your 
  424. drive (if any) to make space for Linux; for example, if you have a DOS 
  425. partition taking up all of your drive, you need to use FDISK under MS-DOS 
  426. to delete it and recreate it with a smaller size. Of course, in so doing 
  427. you'll lose everything on that DOS partition-- just back it up first and 
  428. reinstall after you've recreated and reformatted the partition. 
  429. That's life! :) 
  430.  
  431. Now you can boot up Linux (say, from SLS, or from the boot/root disks). 
  432. >From there you use the command 'fdisk' to create partitions for Linux:
  433.     fdisk <drive>
  434. where <drive> is the name of the drive which you're installing Linux on.
  435. Valid drive names are:
  436.     /dev/hda: first IDE drive
  437.     /dev/hdb: second IDE drive
  438.     /dev/sda: first SCSI drive
  439.     /dev/sdb: second SCSI drive
  440. For example, to run fdisk on the first SCSI drive in your system, use
  441. the command
  442.     fdisk /dev/sda
  443. If you don't specify a drive name for fdisk, it will assume /dev/hda.
  444.  
  445. The fdisk command "m" prints a menu. The "n" command is used to create
  446. a new partition. "w" writes the partition table and exits fdisk; "q"
  447. quits without saving changes. The "p" command displays the current
  448. partition table.
  449.  
  450. When creating partitions with fdisk, you may get an error message to the
  451. effect of "Warning: Linux cannot currently use xxxxx blocks of this 
  452. partition." This simply means that the Minix filesystem type (which is
  453. the default) is limited to filesystems which are 64 megs in size. You can
  454. ignore this warning, because when creating your filesystems, you can use 
  455. one of the other filesystem types (ext, ext2, or xia) which have a size
  456. limit of 4 terabytes.
  457.  
  458. Just keep in mind that if you create a partition larger than 64 megabytes
  459. then you cannot use the Minix filesystem type ('mkfs') when creating
  460. the filesystem (see below). You must use the ext, ext2, or xia filesystem
  461. type instead.
  462.  
  463. NOTE: An "extended partition" DOES NOT equal "extended filesystem". 
  464. An "extended partition" acts as a container for logical partitions. This 
  465. allows you to have more than 4 partitions on a hard drive. Extended
  466. partitions cannot hold data on their own. You must create logical
  467. partitions on the extended partition to hold data. 
  468.  
  469. On the other hand, an "extended filesystem" is a Linux filesystem which
  470. uses the "extended filesystem type" (as opposed to the Xia filesystem,
  471. the Minix filesystem, and so on). Extended partitions and extended 
  472. filesystems have nothing to do with each other.
  473.  
  474. The TYPE of the partition (in the rightmost field when you use the
  475. fdisk "p" command) does not matter to Linux. However, it does matter to
  476. other systems such as OS/2. Just make sure that your Linux partitions
  477. have a type such as "Linux/MINIX" to distinguish it from other systems.
  478. (i.e. It doesn't matter if you set the type of the swap partition to 
  479. "Linux swap". All of your Linux partitions can use the default type
  480. "Linux/MINIX" which is fine). 
  481.  
  482. WARNING: DO NOT use Linux fdisk to manipulate partitions for operating
  483. systems other than Linux. This means don't use Linux fdisk to delete
  484. or create MS-DOS partitions, for example. Use MS-DOS fdisk for this
  485. instead. Linux fdisk doesn't properly know how to create partitions for
  486. MS-DOS and other operating systems.
  487.  
  488. When creating partitions, write down the names and sizes of the partitions
  489. you create. You need this information later on. Use the fdisk "p" command 
  490. to display this information.
  491.  
  492. Once you have your partitions created, reboot the system (with the SLS
  493. disk, reboot with the a1 disk again). You can now create filesystems 
  494. on those partitions (which is similar to "formatting" a partition under
  495. MS-DOS). For the swap partition, use the command
  496.     mkswap <partition> <size>
  497. then
  498.     swapon <partition>
  499. For example, for a swap partition on /dev/hda2, with a size of 8208
  500. blocks, you'd use the commands
  501.     mkswap /dev/hda2 8208
  502.     swapon /dev/hda2
  503. This will make the swap space and enable it. Swap space is used as
  504. virtual memory... if you have 4 megs of RAM in your machine, and a 
  505. 16 meg swap partition, you have a total of 4 + 16 = 20 megs of RAM
  506. available for Linux.
  507.  
  508. To make your filesystems, use the correct version of the 'mkfs'
  509. program, depending on the type of filesystem you wish to use:
  510.     Filesystem type     Command to create filesystem
  511.     ---------------     ----------------------------
  512.     Minix               mkfs -c <partition> <size>
  513.     Extended (old)      mkefs -c <partition> <size>
  514.     Second Extended     mke2fs -c <partition> <size>
  515.     Xia filesystem      mkxfs -c <partition> <size>
  516. The Minix and Extended filesystem types are older, and while more
  517. robust, are slower and may eventually be phased out. The most
  518. popular filesystem type used right now is the Second Extended fs
  519. type ('mke2fs'). The Minix filesystem type is limited to 64 megs
  520. (and 14-character-long filenames). It's suggested that you use
  521. either mke2fs or mkxfs.
  522.  
  523. For example, to create a 61000-block Second Extended filesystem on
  524. /dev/hda3, use the command
  525.     mke2fs -c /dev/hda3 61000
  526. The "-c" option checks for bad blocks on the filesystem. Apparently
  527. mkfs and mkefs do not actually use the bad block information 
  528. correctly (see Q/A below).
  529.  
  530. Now you're ready to install the software. For SLS this means just 
  531. using the 'doinstall' command (see section III.B above). For other
  532. installations you may need to 'mount' the filesystems first. Just 
  533. see the relevant READMEs for information.
  534.  
  535.  
  536.  III.11)  Why does fdisk say "Linux cannot currently use XXXX sectors of
  537. this partition"? 
  538.  
  539. ANSWER: See the previous Q/A. Fdisk is an older program which expected 
  540. all filesystems to be Minix fs, which limited filesystems to 64 megs. You 
  541. can ignore this warning because the extfs, xiafs, and ext2fs don't have 
  542. this limit.
  543.  
  544.  III.12)  What does the message "MINIX-fs: Magic match failed" on bootup 
  545. mean?
  546.  
  547. ANSWER: Basically, this means that you're trying to mount a non-Minix
  548. filesystem as a Minix filesystem, and mount is croaking on it because the
  549. type is wrong. If you use a filesystem type other than Minix fs (i.e.
  550. if you use the extfs, ext2fs, or xiafs) you'll probably see this message:
  551. the kernel tries to mount root as Minix, then extfs, then ext2fs, and so on...
  552. every time it fails for one type it tries the next type. 
  553.  
  554. In most situations, this can be ignored, if the kernel is able to mount
  555. your root partition as any one of its known types. However, if you have 
  556. recompiled the kernel yourself and set the root device to the wrong 
  557. partition, then the kernel should hang at this point and you'll have to use 
  558. "rdev" to set it correctly.
  559.  
  560.  III.13)  Linux mkfs doesn't accept the size I give the device,
  561. although I double-checked with fdisk, and it's correct.
  562.  
  563. ANSWER: Be sure you give the size in Linux BLOCKS (1024 bytes), not
  564. sectors. Also make sure that you have the right partition: partitions
  565. are numbered "/dev/hda1", "/dev/hda2", and so on (and "/dev/hdb1",
  566. "/dev/hdb2" for the second hard drive)... DON'T use "/dev/hda" or
  567. "/dev/hdb" as they correspond to the entire disk, not just single
  568. partitions.
  569.  
  570. Also remember that SCSI drives use /dev/sda1, /dev/sda2... and
  571. /dev/sdb1, /dev/sdb2, and so on for their partitions.
  572.  
  573.  
  574.  III.14)   How can I get mkfs/mkefs to check for bad blocks?
  575.  
  576. ANSWER: Unfortunately the -c option on mk(e)fs does not work; it
  577. cannot detect bad blocks on the drive, and thus if you create a
  578. filesystem over a part of your hard drive with bad blocks, things will
  579. eventually go wrong. So you need to generate a bad block list (in a
  580. file) and use the -l option on mk(e)fs so it will flag those blocks
  581. when making a filesystem.
  582.  
  583. mke2fs and mkxfs correctly flag bad blocks, so this only applies to
  584. mkfs and mkefs. This is also only needed for older RLL and MFM drives. 
  585. SCSI and IDE drives have bad block logic on-board.
  586.  
  587. How to generate a bad block list? Since this is only needed for older
  588. drives and older filesystem types (i.e. Minix and extfs), just mail
  589. mdw@tc.cornell.edu or kircher@neuro.tuwien.ac.at if you need
  590. instructions on this procedure. Your best bet is to use mke2fs or
  591. mkxfs anyway.
  592.  
  593.  
  594.  III.15)  How can I boot Linux off of my hard drive? 
  595.  
  596. ANSWER: You need to install the "LILO" program which changes the boot
  597. sector of your hard drive to allow you to choose between a DOS or a
  598. Linux partition to boot from. These programs are provided with most
  599. major releases, or you can get them seperately from one of the FTP
  600. sites.
  601.  
  602. As of LILO version 8 there is a "quick install" script available which
  603. should make LILO installation quick and easy. See Section VII for LILO
  604. information. You can also see the "LILO QUICKSTART GUIDE" by Matt Welsh
  605. which should be available on sunsite.unc.edu:/pub/Linux/docs.
  606.  
  607.  
  608.  III.16)  I tried to install LILO, but screwed up somehow, and
  609. now can't boot anything from the hard drive. How can I fix this?
  610.  
  611. ANSWER: Simple. First you need an MS-DOS 5.0 (or OS/2) bootable floppy
  612. with FDISK.EXE on it. Boot it and run the command
  613.     FDISK /MBR 
  614. which will (hopefully) restore your hard drive's master boot record to
  615. a standard MS-DOS (resp. OS/2) boot record. Now you can go back and
  616. reinstall LILO. :)
  617.  
  618.  
  619.  III.17)  When installing SLS, I get the error "You may have inserted
  620. the wrong disk" when putting in the next disk in a series. What's
  621. going on?
  622.  
  623. ANSWER: Each disk has a small file on it which contains the name of
  624. the disk. For example, the SLS a3 disk has a file on it called
  625. "diska3". If it doesn't exist, or is named something else (like
  626. "diska3.z"), then just create it/rename it. If you copied the files
  627. to the SLS floppies using "copy *.* ..." then you probably missed
  628. the "diska3" file because it doesn't have an extension in the 
  629. filename!
  630.  
  631. Also, the last disk in a series (i.e. the a4 disk, b5 disk, etc.) has
  632. a file on it called "install.end". You need this file as well. These
  633. files are used by the SLS doinstall program to keep track of where it
  634. is.
  635.  
  636.  
  637.  III.18)   When installing SLS, the installation script creates a "boot
  638. floppy" for me to boot Linux with. How can I make these myself (or fix
  639. problems with them?)
  640.  
  641. ANSWER: The SLS install scripts just copy the kernel image to a blank
  642. floppy for you to boot Linux with. When SLS is installed, a copy of
  643. the kernel is stored in the file /Image on your hard drive: since you
  644. use the kernel on your boot floppy to boot, this file isn't used
  645. during the bootup process (unless you install LILO).
  646.  
  647. To make a boot floppy yourself, you must do two things:
  648.   1) Run 'rdev' (a.k.a. 'rootdev') on the kernel in the file /Image to set
  649.      the root partition it uses. For example, if your root partition is
  650.      /dev/hda3, run the command
  651.        rdev /Image /dev/hda3
  652.   2) Copy the kernel to a new floppy. You may need to DOS format the floppy
  653.      first(*). Then run the command
  654.           cp /Image /dev/fd0
  655.      if the floppy is in /dev/fd0 (the first floppy drive). You can use a
  656.      command like
  657.           dd if=/Image of=/dev/fd0 bs=16k
  658.      as well; they should accomplish the same thing.
  659.  
  660. (*) (From: "Michael L. Kaufman" kaufman@delta.eecs.nwu.edu)
  661. Formating the floppy lays down the track/sector information. If
  662. you have a completely unformated floppy, dd can fail in interesting
  663. ways.  
  664.  
  665. Many folks have problems with their SLS boot disks made in this manner
  666. because they forgot to run 'rdev' on the kernel image before copying
  667. it to the floppy.
  668.  
  669.  III.19)  How can I set the default video mode used by Linux? Do I have
  670. to recompile the kernel to do this? 
  671.  
  672. ANSWER: No, you don't have to recompile the kernel. Just use "rdev" with
  673. the "-v" switch to set the video mode in the kernel (either on your 
  674. hard drive (if booting from LILO) or on your boot floppy). For example,
  675. to change the kernel in /Image to prompt for the videomode on bootup, do
  676.     rdev -v /Image -3
  677. to change the kernel on your boot floppy do,
  678.     rdev -v /dev/fd0 {video-mode}
  679.  
  680.  III.20)   How else can I use rdev?
  681.  
  682. ANSWER: rdev is very handy and also is used to set the root and swap 
  683. partitions, ramdisk size, and more, in a compiled kernel. It means you 
  684. don't have to recompile the kernel to make these changes. Use "rdev -?" 
  685. for a list of options.
  686.  
  687.  
  688.  III.21)   When I login as non-root, I get tons of errors about
  689. "shell-init: permission denied". Also, some things work as root but
  690. not as a normal user. What's the deal?
  691.  
  692. ANSWER: This is a really common problem which comes from not having
  693. permissions set right and a misunderstanding of some UNIX terms. Some
  694. installations won' t have the file permissions set correctly on the
  695. various directories that normal users (i.e. non-root) will use. For
  696. example, if your user directories are in /home, then /home must be of
  697. mode rwxr-xr-x, or 'chmod 755 /home'.  Also, a home directory must be
  698. owned by the user who it belongs to (i.e.  /home/mdw must be owned by
  699. 'mdw'...  just 'chown mdw /home/mdw', for example).  Also, the
  700. permissions must be set correctly for / (the root directory). Here's a
  701. list of permissions that should work (although you can use other
  702. permissions, these are just suggestions that shouldn't cause trouble):
  703.  
  704.  permissions (chmod)   owner   file
  705.  ----------- -------   -----   ---------------------------------------------
  706.  rwxr-xr-x   (755)     root    /
  707.  rwxr-xr-x   (755)     root    /home
  708.  rwxr-xr-x   (755)     mdw     /home/mdw
  709.  rwxr--r--   (744)     mdw     /home/mdw/.profile (or other startup files)
  710.  rwxr--r--   (744)     mdw     /home/mdw/foo (normal files)
  711.  
  712. In most cases the group of the file doesn't matter, but in general
  713. most files are set to group 'root' (except for binaries which are
  714. group bin, and so on) and user files are set to group 'user' (or
  715. whatever group users are in).
  716.  
  717. In general you want directories that everyone can access to be
  718. rwxr-xr-x (chmod 755). Files that everyone can read are rwxr--r--
  719. (chmod 744), and programs that everyone can run are rwxr-xr-x (chmod
  720. 755).
  721.  
  722. Thus /bin, /usr, /usr/bin, /etc, and so on, should all be rwxr-xr-x.
  723. All binaries should be rwxr-xr-x (unless, of course, they're setuid
  724. programs).  For UNIX newbies, setuid programs run under the user id of
  725. the owner, thus programs owned by root which have a permission of
  726. rwsr-xr-x (note the 's') run as root, with root's priveleges. So
  727. before changing permissions on a program check to see if it's setuid
  728. first. To make a program setuid prepend a '4' to the permissions you
  729. give to chmod, i.e. rwsr-xr-x is 'chmod 4755'.
  730.  
  731. Here's a list of common uses for permissions:
  732.  
  733. permission    effect on files           effect on directories
  734. ----------    -----------------------   ---------------------------------
  735. read          lets you look             lets you see what's in the directory
  736.           at a file, lets you       with ls
  737.           run a shell script
  738.  
  739. write         lets you edit a file or   lets you create or delete a file from
  740.           copy over it              the directory (*)
  741.  
  742. execute       lets you run a binary or  lets you cd into the directory
  743.           shell script
  744.  
  745. (*) Note that you can delete a file from a directory even if you DON'T
  746. have write access to the file itself! Write access to the DIRECTORY
  747. that the file is in will let you delete any file in that directory.
  748. The permissions of the file itself have nothing to do with being able
  749. to delete a file.  This is standard across all UNIX systems, nothing
  750. new with Linux.
  751.  
  752. If any of this is confusing, please go buy a good book on using UNIX
  753. and read it. All of the above is standard UNIX fare. It's included here 
  754. because many Linux newcomers don't take the time to learn UNIX before
  755. they dive in. :)
  756.  
  757.  
  758.  III.22)  I have the previous version of the Linux kernel, how can 
  759. I upgrade it?
  760.  
  761. ANSWER: If you've never done this before, get the kernel sources from
  762. your nearest FTP site (in a file named something like linux-*.tar.z)
  763. and unpack them into /usr/src/linux. As of Linux-0.99 there is a
  764. script to autoconfigure your kernel, and you need at least GCC version
  765. 2.3.3. You unpack these sources in /usr/src/linux. Make sure you have
  766. the logical links for /usr/include/linux and /usr/include/asm as 
  767. described below.
  768.  
  769. First run 'make config' and answer the various questions. Then
  770. edit /usr/src/linux/Makefile to set the root partition, keyboard, etc.
  771. Finally, do a 'make dep' (to set dependencies: VERY important!) and
  772. finally 'make'.  Assuming you have GCC installed correctly, the kernel
  773. should compile and you'll be left with a new "Image" which is your new
  774. kernel: if you boot from harddrive, copy the Image to wherever you
  775. told LILO to look for it, or if you boot from floppy dd the Image to a
  776. new floppy. Make sure that you run "rdev" on the Image to make it look
  777. for the correct partition for your root filesystem (if you specified
  778. this correctly in the Makefile you don't need to do this).
  779.  
  780. ** Make sure you read /usr/src/linux/README, which explains in detail
  781. ** what to do when recompiling the kernel.
  782.  
  783. If you HAVE done this before, you can just apply the source patches to
  784. your old sources and then recompile (i.e. you don't have to get the
  785. entire kernel sources all over again). Use the "patch" program to do
  786. this.  Before you recompile the kernel do a 'make dep' to set
  787. dependencies and a 'make clean'.
  788.  
  789.  
  790.  III.23)  Where is /usr/include/linux and /usr/include/asm, or,
  791. Why won't the kernel compile correctly?
  792.  
  793. ANSWER: The files /usr/include/linux and /usr/include/asm are symbolic
  794. links to /usr/src/linux/include/linux and /usr/src/linux/include/asm,
  795. respectively. In other words, all of the Linux include files are
  796. actually under /usr/src/linux/include, but to access them you need two
  797. symbolic links in /usr/include:
  798.     /usr/include/linux -> /usr/src/linux/include/linux
  799.     /usr/include/asm -> /usr/src/linux/include/asm
  800. To make these, run the commands
  801.     ln -sf /usr/src/linux/include/linux /usr/include/linux
  802.     ln -sf /usr/src/linux/include/asm /usr/include/asm
  803. NOT the other way around. :) If you dont have these links then many 
  804. compilations will surely fail.
  805.  
  806.  
  807.  III.24)   How can I upgrade to the newest version of GCC and/or
  808. libraries? 
  809.  
  810. ANSWER: See section IX on GCC for more information, but essentially
  811. all you need to do is FTP to sunsite.unc.edu (or one of the other
  812. Linux FTP sites) and look in /pub/Linux/GCC. You'll see a number of
  813. .tar.z files there (often abbreviated .tpz). The names change from time
  814. to time: you need to get the compiler (often in a file such as
  815. 'gcc233.tpz'), header files, and library files. At this point, the
  816. compiler lives in /usr/bin, the compiler's setup files are under
  817. /usr/lib/gcc-lib/i386-linux, and the libraries (shared, jump table,
  818. and static) are all in /usr/lib. It's all very straightforward once
  819. you actually unpack the tar files and everything falls into place.
  820.  
  821.  
  822.  III.25)  What's the deal with these things called "jump tables"? 
  823.  
  824. ANSWER: There's more information in section X and VII, but to be
  825. brief: There are two kinds of libraries for Linux. As of gcc v2.3.3
  826. they all live in /usr/lib. The files are...
  827.     /usr/lib/*.a   static (non-shared) libraries  (use gcc -static ...)
  828.     /usr/lib/*.sa jump table shared lib stubs (use gcc -jump ...)
  829.  
  830. There is an older form of the shared libraries which is no longer widely used.
  831. Nonetheless, you may run across it from time to time.
  832.     /usr/lib/*.ca  classic shared lib stubs
  833.  
  834. When you compile a program, depending on the options you give gcc
  835. (-jump is the default) it will link it against one set of these
  836. libraries. The static libs contain all of the code and thus make your
  837. executable very big; no shared code is used. The classic shared libs
  838. were actually 'stubs' which reference the shared code in
  839. /lib/libc.so.VERSION (where VERSION is a number like '4.2').
  840. /lib/libc.so.VERSION is a file which contains the actual code of the
  841. library, which is accessed at runtime by your executable. The
  842. jump-table library stubs are also shared libs, but they are built in
  843. such a way that you can upgrade the /lib/libc.so.VERSION file without
  844. having to recompile the programs that use it.
  845.  
  846. So when we say "uses Jump Tables version 4.2" we mean it uses the
  847. actual library itself, /lib/libc.so.4.2. To compile programs that use
  848. jump tables version 4.2 you need the right version of /usr/lib/*.sa
  849. installed, but you don't need them to RUN programs that use jump
  850. tables.
  851.  
  852. However programs that are compiled to use, for example, jump table
  853. version 4.2 (in the file /lib/libc.so.4.2) won't work if you only have
  854. libc.so.4.1 installed. They're only backwards-compatible. If you get
  855. errors about 'can't find /lib/libc.so.4.1' then the executable you're
  856. using is looking at runtime for a jump table version that you don't
  857. have. Basically you're safe if you have the most recent version of the
  858. /lib/libc.so.VERSION file installed (which is found on
  859. sunsite.unc.edu:/pub/Linux/GCC and comes with the GCC stuff).
  860.  
  861. You should always have a symbolic link with the major version number
  862. of the library in /lib, because that's what's actually read. For
  863. instance, if you have /lib/libc.so.4.2 installed, then you need the
  864. symbolic link
  865.     /lib/libc.so.4 -> /lib/libc.so.4.2
  866. Make this with the command
  867.     ln -s /lib/libc.so.4.2 /lib/libc.so.4
  868.  
  869.  III.26)  How to upgrade jump tables? (Without hanging my system)
  870.  
  871. ANSWER: Be careful! If you upgrade your /lib/libc.so.VERSION file and
  872. either remove the symlink or delete the old libc.so.VERSION file
  873. before the new one is in place (and the link points to it), then more
  874. than likely all of your binaries like "cp", "mv", "ls" and "ln" use
  875. the library, so they'll all stop working once you kill the link or the
  876. library file. So to upgrade the file, copy the new version to /lib and
  877. switch the link in one step with a command such as
  878.     ln -sf /lib/libc.so.NEW_VERSION /lib/libc.so.4 
  879. where NEW_VERSION is the new version of the library you're installing.
  880. This will switch the link in one step and everything should work. You
  881. just can't copy over the old file because the old version is in use by
  882. 'cp', 'mv', and so on.
  883.  
  884. BTW you get new versions of GCC, jump tables, libraries, include files, etc.
  885. from tsx-11.mit.edu:/pub/linux/GCC.
  886.  
  887.   
  888.  III.27)  How can I be sure I won't be writing over anything important
  889. when installing Linux?  I have to use DOS on my machine, and I don't
  890. want to lose any files.
  891.  
  892. ANSWER: Back up everything. Just in case. As long as your DOS and
  893. Linux partitions don't overlap you should be okay.
  894.  
  895.  
  896.  III.28)  I just rebooted my machine, and now Linux dies with a
  897. "panic: trying to free unused inode". What's going on?
  898.  
  899. ANSWER: You probably forgot to "sync" before rebooting, which stores
  900. on the disk physically the contents of the kernel buffers. You can
  901. either run "fsck" on the partition to TRY to correct the problem (it
  902. might fail), or re-mkfs and re-install the software on that partition.
  903. For the extended filesystem use "efsck" instead.
  904.  
  905. The best way to shutdown your system is the "shutdown" command. To
  906. shutdown and reboot the system, use
  907.     shutdown -r now 
  908. or substitute a number of minutes in place of "now". Leave off the
  909. "-r" switch if you just want to shutdown and not reboot.
  910.  
  911.  
  912.  III.29)  Can I use both OS/2 and Linux on my machine??
  913.  
  914. ANSWER: Yes! See the following two Q/A's about getting your OS/2 Boot
  915. Manager to work. But, be warned: IF YOU USE OS/2, DO NOT USE LINUX's
  916. FDISK TO CREATE LINUX PARTITIONS!! The problem is with a bug/feature
  917. in OS/2's fdisk that tries to correct 'errors' in partitions that it
  918. doesn't like... Linux partitions included. The solution: make your
  919. Linux partitions with OS/2's fdisk, then use Linux's fdisk to change
  920. the partition ID's to the right values (this is self-explanatory with
  921. Linux's fdisk).
  922.  
  923. If you made your Linux partitions with Linux's fdisk, and OS/2 sees
  924. them, it will think they have errors and end up trashing them.
  925.  
  926.  
  927.  III.30)   I use OS/2's Boot Manager on my hard drive. How can I get it
  928. to recognize Linux?
  929.  
  930. ANSWER: To do this, install LILO on your Linux root partition, NOT on
  931. your hard drive's master boot record. The lilo command for this would
  932. be (if /dev/hda3 is your Linux root partition, and your Linux kernel
  933. is in /Image):
  934.  
  935.     /etc/lilo/lilo -c -b /dev/hda3 -v -s /Image
  936.  
  937. Then use OS/2's fdisk to add it to the Boot Manager.
  938.  
  939. Thanks to Thomas Brodt <brodtts@minnie.informatik.uni-stuttgart.de>.
  940.  
  941.  
  942.  III.31)   When I run Linux's fdisk it says "OPUS" for OS/2's Boot
  943. Manager partition. Is this right? What's OPUS?
  944.  
  945. ANSWER: It's correct. OPUS is BBS software that used partition type
  946. 0x0A long before OS/2.
  947.  
  948.  
  949.  
  950. IV. SOME CLASSICAL PROBLEMS 
  951. ===========================
  952.  
  953.   IV.01)  While running du I get "Kernel panic: free_inode: bit
  954. already cleared".  Also, du produces a ENOENT error for all the files
  955. in certain of my directories.  What's going on?
  956.  
  957. ANSWER: These are both consistent with a bad file-system.  That's
  958. relatively easy to produce by not syncing before rebooting, as linux
  959. usually has 1.5MB of buffer space held in memory (unless you have <=4M
  960. RAM, in which case the buffers are only about 0.5MB). Also linux
  961. doesn't do anything special about the bit-map blocks, and as they are
  962. used often, those are the thing most likely to be in memory. If you
  963. reboot, and they haven't been written to disk ...
  964.  
  965. Just do an fsck on the device, the -a flag might repair it otherwise,
  966. the only thing to do is to reinstall the filesystem from the Images.
  967.  
  968. A sync is done only every 30 seconds normally (standard unix
  969. practice), so do one by hand (some people think you should do 3 syncs
  970. after each other, but that's superstition, you just have to give time
  971. to the first sync to finish), or by logging out from the
  972. startup-shell, which automatically syncs the system. Unmounting a
  973. filesystem also syncs it (but of course you can never unmount root).
  974.  
  975. Another (sad) possibility is that you have bad blocks on your disk.
  976. Not very probable, as they would have to be in the inode-tables, just
  977. a couple of blocks in size. Again there aren't programs available to
  978. read a disk for bad sectors and put them in some kind of
  979. "bad-sector-file".  On IDE drives this is no problem (bad sectors are
  980. automatically mapped away).
  981.  
  982.  
  983.   IV.02)  How can I partition my hard-drive to use Linux?
  984.  
  985. ANSWER: See section III of the FAQ on installation.
  986.  
  987.   IV.03)  I heard something about repartition a hard disk without
  988. deleting everything on it, any clue?
  989.  
  990. ANSWER: It's not a program but a partition procedure which requires
  991. a) a partitionning program
  992. b) a sector editor
  993. The procedure itself can be found (at least) in digest#132 Vol2.
  994.  
  995.  
  996.   IV.04)  What must I do to mkfs a floppy?
  997.  
  998. ANSWER: blocks are of size 1K so 1.44 floppy is 1440 blocks. The
  999. floppy has to be formatted before this will work (e.g., fdformat can
  1000. do this from within Linux).
  1001.  
  1002.  
  1003.   IV.05)  I have some trouble with tar/untar; any clue ?
  1004.  
  1005. ANSWER: The tar provided on .96 and later is Pax (don't know for
  1006. CURRENT_VERSION) which does not accept the z flag. You can download
  1007. the GNU tar at tsx-11 in /pub/linux/binaries/usr.bin 
  1008.  
  1009.  
  1010.   IV.06)  I can do this as root but not as non-root, is it a bug?
  1011.  
  1012. ANSWER: Except for an early make utility, the problem is caused by an
  1013. incorrect permission flag. The most common problems are about /tmp
  1014. which should be 1777 and /dev/ttys? which might be 766. So as root do
  1015.  
  1016.     chmod 1777 /tmp ; chmod 766 /dev/ttys?
  1017.  
  1018.  
  1019.   IV.07)  "du" reports twice the size showed with "ls -l", is it a
  1020. bug?
  1021.  
  1022. ANSWER: No it is not, the report is 512 bytes multiple (due to POSIX
  1023. requirement), for KB you just add the -k flag. You can add a du
  1024. function in your .profile which does this automatically, something
  1025. like du(){ /usr/bin/du -k $* }
  1026.     
  1027.  
  1028.   IV.08)  Sometimes, I get "mount can't open lock file"; what does this
  1029. means? 
  1030.  
  1031. ANSWER: This can happened for two reasons: 
  1032. A) You try to mount something as non-root. In that case you can either
  1033. retry as root, or set the setuid bit to mount as follows:
  1034. - be sure that mount belongs to root, if not do 'chown root /bin/mount'
  1035. - set the setuid bit with 'chmod u+s /bin/mount'
  1036. BTW you have to do the same with umount (in order to be able to unmount) 
  1037. Remark that it is NOT safe to allow anyone to perform mount/umount.
  1038.  
  1039. B) You are root. mount wants to open /etc/mtab and /etc/mtab~ - the
  1040. first one for reading, the second as lock file. If there is already a
  1041. mtab~ remove it. This can happen if you used once gnuemacs on mtab.
  1042.  
  1043. To forbid that case, just add the following entry in your /etc/rc file:
  1044. rm -f /etc/mtab~
  1045.  
  1046.  
  1047.   IV.09)  When I try "mount /dev/hd?? /user", I get error 2.
  1048.  
  1049. ANSWER: Be sure, that your mount point /user does exist; if not perform 
  1050. a "mkdir /user". 
  1051. BTW the error numbering is explained in /usr/include/errno.h
  1052.  
  1053.  
  1054.   IV.10)  Since I have upgrade my Linux kernel, ps won't work anymore,
  1055. why? 
  1056.  
  1057. ANSWER: Each time you upgrade (or re-compile the kernel), you should
  1058. perform a 'ps -U' (-U is for update the /etc/psdatabase). 
  1059.  
  1060. Every time you boot a new kernel you have to do a 'ps -U' to update
  1061. the psdatabase, after doing this you can remove the system file or
  1062. even have to patch the ps-suite.
  1063.  
  1064. BTW: sometimes a patch makes recompiling ps necessary. Sometimes you
  1065. do a make clean.
  1066.  
  1067. NOTE: As of 0.99 there is now a ps package which uses the "/proc
  1068. filesystem".  This is a meta-filesystem which has an entry for each
  1069. process that's running... create the directory /proc and do a 
  1070. 'mount -t proc /proc /proc' to see it, or else add the following
  1071. entry in your /etc/fstab:
  1072.  
  1073.     none     /proc     proc
  1074.  
  1075. You can get the "procps" package from tsx-11.mit.edu in
  1076. /pub/linux/BETA/procps. The nice thing about this is: you don't have
  1077. to upgrade it for every kernel version (and thus ps -U is meaningless
  1078. if you use procps).
  1079.  
  1080. MKJ wrote in c.o.l.a:
  1081.  
  1082. tsx-11.mit.edu:/pub/linux/BETA/procps/procps.tar.Z is the latest
  1083. version of procps.  Most of the reported bugs (i.e. all I can remember
  1084. at the moment ;-) have been fixed, a man page for ps has been added,
  1085. and several new programs have been added and/or fixed.  A list of the
  1086. stuff provided:
  1087.     ps
  1088.     free (a real one, from Linus)
  1089.     uptime (this needs work to be good, mine is a hack)
  1090.     tload (a hack, but who cares?)
  1091.     xload (from drew)
  1092.     fuser (perl script prototype, hopefully the real thing in a
  1093.                later release)
  1094.  
  1095.   IV.11)  Since Linux 0.96b I have a lot of core file all over
  1096. my disk. How can I sweep them away ?
  1097.  
  1098. ANSWER: Use the following command
  1099.         find / -name core -exec rm {} \;
  1100.  
  1101. BTW: think twice before using this command, there might be a John Core
  1102. user on your system; this command will erase his mail :)
  1103.  
  1104. If you never want to see another core file, put this line into
  1105. your /etc/rc file:
  1106.     for a bash user
  1107.                  ulimit -c 0
  1108.     for a csh or tcsh user
  1109.                 limit coredumpsize 0
  1110.  
  1111.  
  1112.  
  1113.   IV.12)  I can only log-in as "root", is it normal ?
  1114.  
  1115. ANSWER: No, add "rm -f /etc/nologin" in your /etc/rc.local file
  1116.  
  1117.   IV.13)  Sometimes my Linux virtual console get messed up when I cat
  1118. a binary file. The characters shown are above ascii 127, any clue ?
  1119.  
  1120. ANSWER: (J. Stuckey stuckey@mrcnext.cso.uiuc.edu)
  1121.  
  1122. It's a vt-100 thing I think.
  1123. echo "^V^O"
  1124. should fix it.  Control-V is the literal-next character that stty
  1125. reports for me, and Control-O is the "magic" character that returns
  1126. you to livability. 
  1127.  
  1128.  
  1129. V. LINUX and DOS 
  1130. =================
  1131. *** This section is co-written by Mark Komarinski, A. V. Le Blanc and
  1132. *** MM. Corsini. The official maintainer is Mark, if you have *any*
  1133. *** questions, mail him at komarimf@craft.camp.clarkson.edu 
  1134. *** Last Update 03.08.93
  1135.  
  1136.  
  1137.    V.01)  Is is possible to access DOS from Linux?
  1138.  
  1139. ANSWER: Yes.  
  1140. (1) The mtools package allows you to access DOS files;
  1141. it emulates the DOS commands CD, COPY, DEL, DIR, TYPE, and others.
  1142. (2)  Since approximately version 0.97 of the kernel, you can mount
  1143. DOS file systems as part of your Linux directory tree, providing you
  1144. have an appropriate mount command.  
  1145. (3)  A DOS emulator is in alpha test, which will allow some DOS programs
  1146. and utilities to run under Linux. 
  1147.  
  1148.  
  1149.    V.02)  Why use mtools if you can just mount a drive?
  1150.  
  1151. ANSWER: Mtools is good if you want to do something quickly.  For
  1152. example, if you want to get directories on a bunch of floppies.  The
  1153. mount procedure requires you to mount the drive, get a directory, then
  1154. umount it. Mtools lets you get the directory with one command.
  1155.  
  1156. (Dirk Hohndel:) Mtools is really fast when copying disks. I mount the
  1157. SLS directory of my SUN to my linux box and use mcopy to get the files
  1158. on the disks. 3 times faster than using xcopy under DOS
  1159.  
  1160.  
  1161.    V.03)  How do I get the mtools package set up correctly?
  1162.  
  1163. ANSWER: The mtools package is available in source form on most Linux
  1164. ftp sites.  The most recent version (As of Sept 1992) is mtools.n2,
  1165. and there are linked binaries and library (.a) files available as
  1166. well (for example, as part of MCC interim releases of Linux).
  1167. In the n2 release of mtools, there is only one executable binary
  1168. which works differently depending on its name: you can create hard
  1169. or symbolic links to it named mcopy, mdel, mdir, mtype, etc; this
  1170. is how the Makefile in version n2 of mtools does it, and it saves
  1171. several hundred kilobytes of disk space.  Finally, you need the
  1172. correct information in the file /etc/mtools, which is described below.
  1173. Mtools also comes with the SLS release of linux.
  1174.  
  1175.  
  1176.    V.04)  What is the format of the file /etc/mtools?
  1177.  
  1178. ANSWER: A complete entry in the file /etc/mtools contains the following
  1179. fields: drive, device, fat, cylinders, heads, sectors, offset.  Two
  1180. examples of entries from /etc/mtools are
  1181.  
  1182.      A /dev/fd0 12 80 2 15
  1183.      C /dev/hda1 16 0 0 0
  1184.  
  1185. which defines the DOS disk A: as accessible through the device /dev/fd0,
  1186. having a 12-bit FAT, 80 cylinders, 2 heads, and 15 sectors per track;
  1187. DOS disk C: is accessible through the device /dev/hda1, has a 16-bit
  1188. FAT, and its geometry is simply that of the hard disk where it lives.
  1189. The last three numbers can be 0 if you wish; this allows mtools to
  1190. try to figure out the disk's geometry itself, and perhaps to fail.
  1191. A 12-bit FAT is common for floppies, but may occur in small hard
  1192. disk partitions.  A 16-bit FAT is common for hard disks.
  1193. This is an extract of my /etc/mtools file:
  1194. A /dev/fd0 12 0 0 0     # 3.5  1.4 Meg (autodetect)
  1195. B /dev/fd1 12 0 0 0     # 5.25 1.2 Meg (autodetect)
  1196. C /dev/hda1 16 0 0 0    # 1st partition of my Disk
  1197.  
  1198.  
  1199.    V.05)  Where can I find out more about mtools?
  1200.  
  1201. ANSWER: There are two detailed README files in the mtools.n2 distribu-
  1202. tion.  These files treat compiling and using mtools.  There is a file
  1203. README.mtools which treats only using mtools, which is a part of the
  1204. MCC interim version of Linux.
  1205.  
  1206.  
  1207.    V.06)  How do I use the DOS file system?
  1208.  
  1209. ANSWER: The DOS file system is part of the kernel.  If you have a
  1210. kernel of level .97.1 or above, and an appropriate mount command, type
  1211.  
  1212.      mount -t msdos [-o conv=text] /dev/hda1 /dos
  1213.  
  1214. to mount the partition /dev/hda1 as an MS/DOS file system on the
  1215. directory /dos.  You'll need a recent mount command, from at least
  1216. release 97 or later of the root disk.  Recent mount commands also
  1217. accept the options conv=binary|text|auto (default is binary) to
  1218. specify that text end-of-lines in DOS files are to be converted to
  1219. UNIX end-of-lines (by omitting carriage return characters) in no cases
  1220. (binary) or in all cases (text) or in cases that don't have 'well-
  1221. known binary extensions' (e.g., .EXE or .COM) (auto).
  1222.  
  1223.  
  1224.    V.07)   When I mount an MS-DOS disk, I get two lines of what seem to
  1225. be error messages and the message: No bmap support.  Is my disk bad?
  1226.  
  1227. ANSWER: No.  Since the dosfs is still in ALPHA mode, the two lines are
  1228. used for displaying information about the disk that was mounted, just in
  1229. case you have problems.  The 'No bmap support' message means that you
  1230. cannot run linux programs from that partition.  This has been fixed in the 
  1231. latest release (alpha.9)
  1232.  
  1233.  
  1234.    V.08)  I want to use the DOS file system with either conv=binary or
  1235. conv=auto, but I want to convert text files from DOS to UNIX format,
  1236. or from UNIX to DOS format.
  1237.  
  1238. ANSWER: Use the utility todos/fromdos which comes as part of the
  1239. dosfs package, currently (Sept 92) in released in version 8, or
  1240. use the flip utility by Rahul Dhesi.
  1241.  
  1242.  
  1243.    V.09)  Where can I find out more about the DOS file system?
  1244.  
  1245. ANSWER: There is a README file included in dosfs.XX.tar.Z (the current
  1246. value of XX is 10)
  1247.  
  1248.  
  1249.    V.10)  This sounds me like a chicken and eggs problem, how can I
  1250. install the mtools package at the very beginning.
  1251.  
  1252. ANSWER: You have to use rawrite or the mount procedure.
  1253.  
  1254.  
  1255.    V.11)  Could someone explain how to use rawrite?
  1256.  
  1257. ANSWER: Rawrite is a DOS util which write sequential sectors of
  1258. a formatted disk/floppy. When a floppy has been rawritten, you can
  1259. (under Linux) untar it (use x, v, z and f flags). As an example:
  1260. a) under Dos use rawrite
  1261. rawrite
  1262.     source: kermit.z
  1263.     destination: a
  1264. b) boot under Linux, and perform a tar
  1265. tar zxvf /dev/fd0
  1266. tar zxvp < /dev/fd0
  1267.  
  1268. You DO NOT NEED TO MOUNT a rawritten disk
  1269.  
  1270.  
  1271.    V.12)  What is as86.tar.Z ?
  1272.  
  1273. ANSWER: It's the port of Bruce Evans' minix assembler, you need it to 
  1274. be able to recompile Linux at your convenience. In fact this is ONLY
  1275. used for boot/setup.S and boot/bootsect.S they create 80x86 REAL mode
  1276. code. 
  1277.  
  1278.  
  1279.    V.13)  Turbo (Microsoft) Assembler won't compile the Linux boot
  1280. code.  In fact, some of the opcodes in these files look completely
  1281. unfamiliar.  Why?
  1282.  
  1283. ANSWER: The Linux boot codes are written in Bruce Evans' minix
  1284. assembler, which has the same opcodes as the original minix assembler
  1285. ported to linux get as86.tar.Z There are a few differences
  1286. between these and normal DOS assemblers.
  1287.  
  1288.  
  1289.    V.14)  What about the dos emulator (dosemu)?
  1290.  
  1291. ANSWER: Dosemu is in alpha testing now, so it is very unstable and crashes
  1292. easily.  Some programs (such as earlier versions of Turbo Pascal; TP
  1293. 5.5 too) seem to work fine, but other programs such as dir /p will
  1294. crash the emulator. 
  1295. Look in your favorite FTP site for the dosemu kit.  For a semi-complete
  1296. list of programs that do and do not work under the emulator, get the file
  1297. /pub/Linux/docs/emusucc.txt at sunsite.unc.edu or tsx-11.mit.edu.
  1298.  
  1299.  
  1300.    V.15)   I have a Stacker volume on my hard drive.  Can I access that?
  1301.  
  1302. ANSWER:  Yes, but you will have to do that through the dosemu program. 
  1303. For more information on it, check out the file /pub/Linux/docs/stacker.doc
  1304. at sunsite.unc.edu
  1305.  
  1306.  
  1307.    V.16)   How about OS/2 HPFS partitions, or MacIntosh/Amiga floppies?
  1308. Can I mount any of them?
  1309.  
  1310. ANSWER:  There is no support for any of those filesystems yet.
  1311.  
  1312.  
  1313.        ===================8<==========>8================
  1314. -- 
  1315. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1316. #    LaBRI              |                        #
  1317. #  351 cours de la Liberation    |  e-mail:  corsini@geocub.greco-prog.fr   #
  1318. #  33405 Talence Cedex         |  e-mail:  corsini@labri.u-bordeaux.fr    #
  1319. #                   |                        #
  1320. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1321. -- 
  1322.      There will be a sig when our local net is reliable.
  1323.            For now, I would rather stay anonymous.
  1324.  
  1325.  
  1326.